import request from '@/utils/request'

// 查询房间类型列表
export function listHometype(query) {
  return request({
    url: '/basic/hometype/list',
    method: 'get',
    params: query
  })
}

// 查询房间类型详细
export function getHometype(homeTypeId) {
  return request({
    url: '/basic/hometype/' + homeTypeId,
    method: 'get'
  })
}

// 新增房间类型
export function addHometype(data) {
  return request({
    url: '/basic/hometype',
    method: 'post',
    data: data
  })
}

// 修改房间类型
export function updateHometype(data) {
  return request({
    url: '/basic/hometype',
    method: 'put',
    data: data
  })
}

// 删除房间类型
export function delHometype(homeTypeId) {
  return request({
    url: '/basic/hometype/' + homeTypeId,
    method: 'delete'
  })
}
